package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import org.springframework.data.domain.Page;

import com.tuanzi.loan.vo.request.family.IcpWebSensitiveKeywordSearchRequest;
import com.tuanzi.loan.vo.response.family.IcpWebSensitiveKeywordSearchResponse;
import com.tuanzi.loan.business.service.family.IcpWebSensitiveKeywordService;

/**
 * ICP备案网站敏感字管理 DataModel
 * @author JinRuiyang 2017/12/13 17:57:42
 */
public class IcpWebSensitiveKeywordDataModel extends
        BaseLazyDataModel<IcpWebSensitiveKeywordSearchRequest, IcpWebSensitiveKeywordSearchResponse> {

    private IcpWebSensitiveKeywordService icpwebsensitivekeywordService = SpringContextHolder.getBean(IcpWebSensitiveKeywordService.class);

    public IcpWebSensitiveKeywordDataModel(IcpWebSensitiveKeywordSearchRequest searchRequest) {
        super(searchRequest);
    }

    @Override
    protected Page<IcpWebSensitiveKeywordSearchResponse> doLoad(PageSearcher<IcpWebSensitiveKeywordSearchRequest> pageSearcher) {
        return icpwebsensitivekeywordService.list(pageSearcher);
    }
}
